package shajie.shajun.mmhf.Interface;

import android.content.ComponentCallbacks2;
import android.content.Context;
import android.content.res.Configuration;

/**
 * Created by Administrator on 2017/11/11.
 */

public class BacktoHome implements ComponentCallbacks2 {
    private Context context;

    public BacktoHome(Context context) {
        this.context = context;
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {

    }

    @Override
    public void onLowMemory() {

    }

    @Override
    public void onTrimMemory(int level) {

            if (level == ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN) {

                // 进入后台
        }

    }
}
